package five;

/**
 * Created by ab on 2016/11/2.
 * 编写具有两个(重载)构造器的类，并在第一个构造器中通过this调用另一个
 */
public class task9 {
     public static class Volume{
        Volume(int i){
            this("ass");
            System.out.println("change volume to : "+i);
        }
         Volume(String user){
             System.out.println(user+" change volume");
         }
        Volume(){
            this(5);
            System.out.println("It is a no param constructor");
        }
    }

    public static void main(String[] args){
        new Volume();
    }
}
